package top.lvkun.product.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import top.lvkun.basic.domain.BaseDomain;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product extends BaseDomain{

    //商品名称
    private String name;
    //商品图片资源路径
    private String resources;
    //商品建议零售价
    private BigDecimal saleprice;
    //商品下架日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date offsaletime =new Date();
    //商品上架日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date onsaletime =new Date();
    //商品状态，0已上架，-1已下架
    private Integer state;
    //商品成本价
    private BigDecimal costprice;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime =new Date();
    //销售量
    private Long salecount;
    private ProductDetail productDetail;
    private Long shop_id;
}
